package com.test.deencredit.analytics_deencredit.util_deencredit

import android.app.Application
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.ASBuilder_deencredit
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.ASSycManager_deencredit
import com.test.deencredit.util_deencredit.UserInfoUtil_deencredit

object SycDeviceUtil_deencredit {

    /**
     * 初始化设备信息模块
     *
     * @param context Application
     */
    fun init_deencredit(context: Application) {
        try {

            ASBuilder_deencredit.setLog_deencredit(false)
            // 初始化
            ASSycManager_deencredit.getInstance_deencredit().init_deencredit(context)

        } catch (e: Exception) {
            e.printStackTrace()
        }
    }

    /**
     * 保存设备 s2s信息
     */
    fun saveS2SInfo_deencredit() {
        try {
            if (UserInfoUtil_deencredit.getInstance_deencredit().didLogin_deencredit()) {
                ASSycManager_deencredit.getInstance_deencredit().sycData_deencredit {}
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }
}